﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LeftTree.aspx.cs" Inherits="TRPOP.CMS.Web.Admin.LeftTree" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>树形HTML</title>
    <script src="../js/jquery.js" type="text/javascript"></script>
    <script src="../js/utils.js" type="text/javascript"></script>
    <script src="../js/cookie.js" type="text/javascript"></script>
    <script src="js/lefttree.js" type="text/javascript"></script>
</head>
<!--body style="background: rgb(250, 253, 254); border-radius: 4px; box-shadow: 0px 0px 10px rgba(0,0,0,0.5);"-->
<body style="background: rgb(250, 253, 254);">
    <!--系统设置 start-->
    <table align="center" width="90%" border="0" id="setting_panel" runat="server" visible="false">
        <tbody>
            <tr>
                <td>
                    <table border="0" class="lefttree" cellpadding="0" cellspacing="0">
                        <tbody>
                            <%if (base.m_IAdminUser.CheckUserPermission(TRPOP.CMS.Plugin.PermissionKeys.PermissionEnum.SystemManage_SysParam))
                              { %>
                            <tr>
                                <td>
                                    <a href="param/admin_setting.aspx" target="mainwin">系统设置</a>
                                </td>
                            </tr>
                            <%}
                              if (base.m_IAdminUser.CheckUserPermission(TRPOP.CMS.Plugin.PermissionKeys.PermissionEnum.SystemManage_User))
                              { %>
                            <tr>
                                <td>
                                    <a href="javascript:void(0);" onclick="javascript:ShowMenu('adminuser')">用户管理</a>
                                </td>
                            </tr>
                            <tr id="adminuser" style="display: none;">
                                <td>
                                    &nbsp;&nbsp;<a href="adminuser/UserBase_save.aspx" target="mainwin">新增 </a>&nbsp;<a
                                        href="adminuser/UserBase_list.aspx" target="mainwin">修改/删除 </a>
                                </td>
                            </tr>
                            <%}
                              if (base.m_IAdminUser.CheckUserPermission(TRPOP.CMS.Plugin.PermissionKeys.PermissionEnum.SystemManage_ContentModel))
                              { %>
                            <tr>
                                <td>
                                    <a href="model/Model_list.aspx" target="mainwin">内容模型管理</a>
                                </td>
                            </tr>
                            <%}
                              if (base.m_IAdminUser.CheckUserPermission(TRPOP.CMS.Plugin.PermissionKeys.PermissionEnum.SystemManage_UploadFile))
                              { %>
                            <tr>
                                <td>
                                    <a href="param/FieldSetting.aspx" target="mainwin">附件设置</a>
                                </td>
                            </tr>
                            <%}
                              if (base.m_IAdminUser.CheckUserPermission(TRPOP.CMS.Plugin.PermissionKeys.PermissionEnum.SystemManage_PSN))
                              { %>
                            <tr>
                                <td>
                                    <a href="param/PSN_list.aspx" target="mainwin">发布点(PSN)管理</a>
                                </td>
                            </tr>
                            <%}
                              if (base.m_IAdminUser.CheckUserPermission(TRPOP.CMS.Plugin.PermissionKeys.PermissionEnum.SystemManage_Plugin))
                              { %>
                            <tr>
                                <td>
                                    <a href="Plugin/Plugin_list.aspx" target="mainwin">插件管理</a>
                                </td>
                            </tr>
                            <tr id="plugins_admin" style="display: none;">
                                <td>
                                    &nbsp;&nbsp;&nbsp;&nbsp;<a href="Plugin/Plugin_save.aspx" target="mainwin">新增 </a>
                                    <a href="about:blank" target="mainwin">修改/删除 </a>
                                </td>
                            </tr>
                            <%}
                              if (base.m_IAdminUser.CheckUserPermission(TRPOP.CMS.Plugin.PermissionKeys.PermissionEnum.SystemManage_TemplateVars))
                              { %>
                            <tr>
                                <td>
                                    <a href="param/admin_setting.aspx?cid=2" target="mainwin">模板变量管理</a>
                                </td>
                            </tr>
                            <%}
                              if (base.m_IAdminUser.CheckUserPermission(TRPOP.CMS.Plugin.PermissionKeys.PermissionEnum.SystemManage_KeysReplace))
                              { %>
                            <tr>
                                <td>
                                    <a href="param/WordReplace_list.aspx" target="mainwin">关键字替换</a>
                                </td>
                            </tr>
                            <%}
                              if (base.m_IAdminUser.CheckUserPermission(TRPOP.CMS.Plugin.PermissionKeys.PermissionEnum.SystemManage_Cache))
                              { %>
                            <tr>
                                <td>
                                    <a href="param/CacheSetting.aspx" target="mainwin">缓存管理</a>
                                </td>
                            </tr>
                            <%} %>
                            <tr class="hide">
                                <td>
                                    <a href="model/FormInputLimitType_list.aspx" target="mainwin">录入限制管理</a>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <a href="model/FormInputValueType_list.aspx" target="mainwin">可选值管理</a>
                                </td>
                            </tr>
                            <tr class="hide" style="display: none">
                                <td>
                                    <a href="model/FormInputType_list.aspx" target="mainwin">录入类型管理</a>
                                </td>
                            </tr>
                            <tr class="hide" style="display: none">
                                <td>
                                    <a href="javascript:void(0);" onclick="javascript:ShowMenu('func_admin')">系统函数管理</a>
                                </td>
                            </tr>
                            <tr id="func_admin" style="display: none;">
                                <td>
                                    <a href="javascript:edit('cms_func');">CMS函数扩展 </a>
                                    <br>
                                    <a href="javascript:edit('crawler_func');">采集过滤函数 </a>
                                </td>
                            </tr>
                            <%
                                if (base.m_IAdminUser.CheckUserPermission(TRPOP.CMS.Plugin.PermissionKeys.PermissionEnum.SystemManage_Other))
                                { %>
                            <tr style='display: none'>
                                <td>
                                    <a href='javascript:void(0);' onclick="javascript:ShowMenu('log_admin')">日志管理</a>
                                </td>
                            </tr>
                            <tr id="log_admin" style='display: none'>
                                <td>
                                    <a href="log/syserrorlog.aspx" target="mainwin">运行日志 </a>
                                </td>
                            </tr>
                            <%}%>
                            <tr>
                                <td>
                                    <a href='adminuser/UserSelf_save.aspx' target="mainwin">个人信息修改</a>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
    <!--系统设置 end-->
    <!--tree start-->
    <div id="tree_panel" runat="server" visible="false">
        <script type="text/javascript" src="tree/xtree.js"></script>
        <script type="text/javascript" src="tree/xmlextras.js"></script>
        <script type="text/javascript" src="tree/xloadtree.js"></script>
        <script src="tree/xmenu.js" type="text/javascript"></script>
        <link href="tree/xmenu.css" rel="stylesheet" type="text/css" />
        <link type="text/css" rel="stylesheet" href="tree/xtree.css" />
        <script type="text/javascript" language="JavaScript">
            var elo;
            var loadmenuok = false;
            var type = 'main';
            var sId = 'd1c46417f6d6c7720766db77842e1597';
            var obj = "";
            function going(action, cId) {
                switch (action) {
                    case 'newdoc':
                        window.open('publish/admin_publish_eidt.aspx?ac=add&nodeid=' + cId);
                        break;
                    case 'tpl':
                        break;
                    case 'site':
                        top.mainwin_Open("node/Node_save.aspx?nodeid=" + cId + '&t=' + Math.random());
                        break;
                    case 'publish':
                        top.mainwin_Open('publish/admin_publish_list.aspx?nodeid=' + cId + '&t=' + Math.random());
                        break;
                    case 'create_node':
                        top.mainwin.location = 'node/Node_save.aspx?pid=' + cId;
                        break;
                    case 'create_node_based':
                        var parm = '?roottype=createnodebase&view=node_select&menu=tree_panel&pid=' + cId;
                        top.show_dialog('AdminSelect.aspx' + parm, 450, 210, '新建结点基于');
                        break;
                    case 'del_node':
                        if (confirm("确认删除该结点吗?")) {
                            var returntext = $.ajax({ type: "POST", url: 'node/node_control.aspx', data: 'ac=ajax_del&id=' + cId, async: false }).responseText;
                            var msg = eval("msg=" + returntext);
                            if (msg.result == "1") {
                                alert(msg.msg);
                                if (top.mainwin.location.href.indexOf('nodeid=' + cId) > 0) {
                                    top.doing('go_sys_index');
                                }
                                window.location.reload(true);
                            } else {
                                alert(msg.msg);
                            }
                        }
                        break;

                    case 'move_node':
                        var parm = '?roottype=movenode&view=node_select&menu=tree_panel&movenodeid=' + cId + '&t=' + Math.random();
                        top.show_dialog('AdminSelect.aspx' + parm, 450, 210, '移动结点');

                        break;
                    case 'sort_node':
                        var parm = '?nodeid=' + cId + '&t=' + Math.random();
                        top.show_dialog('node/Sort_Node.aspx' + parm, 300, 70, '设置结点排序权重');
                        break;
                    case 'empty_recycle_bin':
                        var arr = showModalDialog("node/ConfirmDestroyNode.aspx?nodeid=0", "color", "dialogWidth:300px;dialogHeight:206px;help:0;status:0;scroll:no");
                        if (arr['v'] == "1") {
                            var delfile = arr['delfile'];
                            var delattr = arr['delattr'];
                            var delimg = arr['delimg'];
                            var returntext = $.ajax({ type: "POST", url: 'node/Node_control.aspx', data: 'ac=ajax_empty_recycle_bin&nodeid=' + cId + '&delfile=' + delfile + '&delattr=' + delattr + '&=delimg=' + delimg, async: false }).responseText;
                            var msg = eval("msg=" + returntext);
                            if (msg.result == "1") {
                                alert(msg.msg);
                                if (top.mainwin.location.href.indexOf('Site_Recycle_Bin') > 0) {
                                    top.doing('go_sys_index');
                                }
                                window.location.reload(true);

                            } else {
                                alert(msg.msg);
                            }
                        }
                        break;
                    case 'destroy':
                        var arr = showModalDialog("node/ConfirmDestroyNode.aspx?nodeid=" + cId, "color", "dialogWidth:300px;dialogHeight:206px;help:0;status:0;scroll:no");
                        if (arr['v'] == "1") {
                            var delfile = arr['delfile'];
                            var delattr = arr['delattr'];
                            var returntext = $.ajax({ type: "POST", url: 'node/Node_control.aspx', data: 'ac=ajax_destroy&nodeid=' + cId + '&delfile=' + delfile + '&delattr=' + delattr, async: false }).responseText;
                            var msg = eval("msg=" + returntext);
                            if (msg.result == "1") {
                                alert(msg.msg);
                                top.doing('go_sys_index');
                                window.location.reload(true);

                            } else {
                                alert(msg.msg);
                            }

                        }
                        break;
                    case 'restore': //恢复结点到
                        var parm = '?roottype=restorenode&view=node_select&menu=tree_panel&restorenodeid=' + cId + '&t=' + Math.random();
                        top.show_dialog('AdminSelect.aspx' + parm, 450, 210, '恢复结点到');
                        break;
                    case 'refresh': //结点更新
                        var _diHeight = 180;
                        var _navigator = navigator_check();
                        if (_navigator.ie && _navigator.ie == "6.0") {
                            _diHeight = 240;
                        }
                        var arr = showModalDialog("publish/admin_siteRefresh.aspx?nodeid=" + cId, "color", "dialogWidth:300px;dialogHeight:" + _diHeight + "px;help:0;status:0;scroll:no");
                        if (arr['content_num'] != null && arr['content_num'] != '') {
                            //top.TaskRun('publish/admin_taskanalysis.aspx?ac=NodeRefresh&nodeid=' + cId + "&refresh_index=" + arr['refresh_index'] + "&refresh_content=" + arr['refresh_content'] + "&refresh_extra=" + arr['refresh_extra'] + "&include_sub=" + arr['include_sub'] + "&onceOper=" + arr['content_num'] + '&t=' + Math.random(), "NodeRefresh_" + cId);
                            top.TaskRun_Ajax('publish/admin_taskanalysis.aspx?ac=ajax_NodeRefresh&nodeid=' + cId + "&refresh_index=" + arr['refresh_index'] + "&refresh_content=" + arr['refresh_content'] + "&refresh_extra=" + arr['refresh_extra'] + "&include_sub=" + arr['include_sub'] + "&onceOper=" + arr['content_num'] + '&t=' + Math.random(), "NodeRefresh_" + cId);
                        }
                        break;
                    case 'site_publish': //结点发布
                        var _diHeight = 86;
                        var _navigator = navigator_check();
                        if (_navigator.ie && _navigator.ie == "6.0") {
                            _diHeight = 150;
                        }
                        var arr = showModalDialog("publish/admin_sitePublish.aspx?nodeid=" + cId, "color", "dialogWidth:300px;dialogHeight:" + _diHeight + "px;help:0;status:0;scroll:no");
                        if (arr['content_num'] != null && arr['content_num'] != '') {
                            top.TaskRun_Ajax('publish/admin_taskanalysis.aspx?ac=ajax_NodePub&nodeid=' + cId + "&include_sub=" + arr['include_sub'] + "&onceOper=" + arr['content_num'] + '&t=' + Math.random(), 'NodePub_' + cId);
                        }
                        break;
                    case 'refresh_index': //刷新首页                     
                        top.TaskRun(' publish/admin_taskanalysis.aspx?ac=RePubNode&nodeid=' + cId + '&t=' + Math.random(), 'RePubNode_' + cId);
                        break;
                    case 'view_index': //查看首页
                        window.open("admin_extrapublish.aspx?ac=viewIndex&nodeid=" + cId + '&t=' + Math.random(), '');
                        break;

                }
            }
        </script>
        <cms:Literal runat="server" ID="publist_js" Visible="false">
            <script language="javascript" type="text/javascript" >
                function rightMenu(NodeID, ext, event) {
                    //alert(NodeID)
                    var toolMenu = new WebFXMenu;
                    toolMenu.width = 120;
                    if (NodeID == 'root') {
                        return;
                        //toolMenu.add(new WebFXMenuItem('整站更新', 'javascript:going("refresh","0")', '整站更新'));
                        //toolMenu.add(new WebFXMenuItem('整站发布', 'javascript:going("site_publish","0")', '整站发布'));

                    } else {
                        toolMenu.add(new WebFXMenuItem('刷新首页', 'javascript:going("refresh_index","' + NodeID + '")', '刷新首页'));
                        toolMenu.add(new WebFXMenuItem('新建文档', 'javascript:going("newdoc","' + NodeID + '")', '新建文档'));
                        //toolMenu.add(new WebFXMenuItem('内容发布管理','javascript:going("publish","'+ NodeID +'")', '内容发布管理'));
                        toolMenu.add(new WebFXMenuItem('结点更新', 'javascript:going("refresh","' + NodeID + '")', '结点更新'));
                        toolMenu.add(new WebFXMenuItem('结点发布', 'javascript:going("site_publish","' + NodeID + '")', '结点发布'));
                        toolMenu.add(new WebFXMenuItem('查看首页', 'javascript:going("view_index","' + NodeID + '")', '查看首页'));
                        toolMenu.add(new WebFXMenuItem('参数设置', 'javascript:going("site","' + NodeID + '")', '参数设置'));
                    }
                    // menudata.innerHTML = toolMenu
                    $("#menudata").html(toolMenu.toString());
                    elo = window.event ? window.event.srcElement : event.target;
                    toolMenu.left = event.clientX;
                    toolMenu.top = event.clientY + document.body.scrollTop;
                    toolMenu.show();
                }
            </script>
        </cms:Literal>
        <cms:Literal runat="server" ID="site_js" Visible="false">
            <script   type="text/javascript" language="javascript" >
                function rightMenu(cId, extra, event) {
                    //alert(extra)
                    if (cId == 'root') {
                        var toolMenu = new WebFXMenu;
                        toolMenu.width = 120;
                        toolMenu.add(new WebFXMenuItem('新建根结点', 'javascript:going("create_node","0")', '新建根结点'));
                        $("#menudata").html(toolMenu.toString());

                        elo = window.event ? window.event.srcElement : event.target;
                        toolMenu.left = event.clientX;
                        toolMenu.top = event.clientY + document.body.scrollTop;
                        toolMenu.show();
                    } else if (cId == 'recycle_bin') {
                        var toolMenu = new WebFXMenu;
                        toolMenu.width = 100;
                        toolMenu.add(new WebFXMenuItem('清空回收站', 'javascript:going("empty_recycle_bin","0")', '清空回收站'));
                        $("#menudata").html(toolMenu.toString());
                        //menudata.innerHTML = toolMenu

                        elo = window.event ? window.event.srcElement : event.target;
                        toolMenu.left = event.clientX;
                        toolMenu.top = event.clientY + document.body.scrollTop;
                        toolMenu.show();


                    } else if (extra == 'recycle_bin') {
                        var toolMenu = new WebFXMenu;
                        toolMenu.width = 100;
                        toolMenu.add(new WebFXMenuItem('恢复到..', 'javascript:going("restore","' + cId + '")', '恢复到..'));
                        toolMenu.add(new WebFXMenuItem('永久删除', 'javascript:going("destroy","' + cId + '")', '永久删除'));

                        //menudata.innerHTML = toolMenu
                        $("#menudata").html(toolMenu.toString());
                        elo = window.event ? window.event.srcElement : event.target;
                        toolMenu.left = event.clientX;
                        toolMenu.top = event.clientY + document.body.scrollTop;
                        toolMenu.show();
                    } else {
                        var toolMenu = new WebFXMenu;
                        toolMenu.width = 140;
                        toolMenu.add(new WebFXMenuItem('新建子结点', 'javascript:going("create_node","' + cId + '")', '新建子结点'));
                        toolMenu.add(new WebFXMenuItem('新建子结点基于', 'javascript:going("create_node_based","' + cId + '")', '新建子结点基于'));
                        toolMenu.add(new WebFXMenuItem('排序权重', 'javascript:going("sort_node","' + cId + '")', '结点排序权重'));
                        toolMenu.add(new WebFXMenuItem('移动结点', 'javascript:going("move_node","' + cId + '")', '移动结点'));
                        toolMenu.add(new WebFXMenuItem('删除结点', 'javascript:going("del_node","' + cId + '")', '删除结点'));
                        //	toolMenu.add(new WebFXMenuItem('新建文档','javascript:going("newdoc","'+ cId +'")','新建文档'));
                        toolMenu.add(new WebFXMenuItem('内容发布', 'javascript:going("publish","' + cId + '")', '内容发布管理'));

                        // menudata.innerHTML = toolMenu
                        $("#menudata").html(toolMenu.toString());
                        // alert($("#menudata").html());
                        elo = window.event ? window.event.srcElement : event.target;
                        toolMenu.left = event.clientX;
                        toolMenu.top = event.clientY + document.body.scrollTop;
                        toolMenu.show();
                    }
                }
            </script>
        </cms:Literal>
        <script type="text/javascript">

    /// XP Look
    webFXTreeConfig.rootIcon = "tree/images/xp/folder.png";
    webFXTreeConfig.openRootIcon = "tree/images/xp/openfolder.png";
    webFXTreeConfig.folderIcon = "tree/images/xp/folder.png";
    webFXTreeConfig.openFolderIcon = "tree/images/xp/openfolder.png";
    webFXTreeConfig.fileIcon = UrlParm.parm('view')=='node_select'?"tree/images/xp/file.png": "tree/images/xp/folder.png";
    webFXTreeConfig.lMinusIcon = "tree/images/xp/Lminus.png";
    webFXTreeConfig.lPlusIcon = "tree/images/xp/Lplus.png";
    webFXTreeConfig.tMinusIcon = "tree/images/xp/Tminus.png";
    webFXTreeConfig.tPlusIcon = "tree/images/xp/Tplus.png";
    webFXTreeConfig.iIcon = "tree/images/xp/I.png";
    webFXTreeConfig.lIcon = "tree/images/xp/L.png";
    webFXTreeConfig.tIcon = "tree/images/xp/T.png";
    webFXTreeConfig.blankIcon = "tree/images/blank.png";

    //var tree = new WebFXLoadTree("WebFXLoadTree", "tree1.xml");
    //tree.setBehavior("classic");
    /*
    rootIcon        : 'images/foldericon.png',
    openRootIcon    : 'images/openfoldericon.png',
    folderIcon      : 'images/foldericon.png',
    openFolderIcon  : 'images/openfoldericon.png',
    fileIcon        : 'images/file.png',
    iIcon           : 'images/I.png',
    lIcon           : 'images/L.png',
    lMinusIcon      : 'images/Lminus.png',
    lPlusIcon       : 'images/Lplus.png',
    tIcon           : 'images/T.png',
    tMinusIcon      : 'images/Tminus.png',
    tPlusIcon       : 'images/Tplus.png',
    blankIcon       : 'images/blank.png',
    defaultText     : 'Tree Item',
    defaultAction   : 'javascript:void(0);',
    defaultBehavior : 'classic',
    usePersistence	: true
    */
    var rti;
   
    //tree.add(new WebFXLoadTreeItem("网站首页", "admin_tree.php?op=sId::d1c46417f6d6c7720766db77842e1597;o::site_xml;NodeID::1", "admin_site.php?op=sId::d1c46417f6d6c7720766db77842e1597;o::edit;NodeID::1", "mainwin", "1"));

    <%=m_strJs %>
   
    document.write(tree);
 
        </script>
        <div id="menudata" style="z-index: 1000;">
        </div>
    </div>
    <!--tree end-->
    <!--评论模块-->
    <table align="center" width="90%" border="0" id="tbRecomment" runat="server" visible="false">
        <tbody>
            <tr>
                <td>
                    <table border="0" class="lefttree" cellpadding="2" cellspacing="2">
                        <tbody>
                            <tr>
                                <td>
                                    <a href="recomment/recomment_setting.aspx" target="mainwin">评论设置</a>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <a href="recomment/recomment_list.aspx" target="mainwin">所有评论</a>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <!--结点树-->
                    <div id="divRecomment">
                        <script type="text/javascript" src="tree/xtree.js"></script>
                        <script type="text/javascript" src="tree/xmlextras.js"></script>
                        <script type="text/javascript" src="tree/xloadtree.js"></script>
                        <script src="tree/xmenu.js" type="text/javascript"></script>
                        <link href="tree/xmenu.css" rel="stylesheet" type="text/css" />
                        <link type="text/css" rel="stylesheet" href="tree/xtree.css" />
                        <script language="javascript">
                                            function rightMenu(NodeID, ext, event) {
                                            }
                                            /// XP Look
                                            webFXTreeConfig.rootIcon = "tree/images/xp/folder.png";
                                            webFXTreeConfig.openRootIcon = "tree/images/xp/openfolder.png";
                                            webFXTreeConfig.folderIcon = "tree/images/xp/folder.png";
                                            webFXTreeConfig.openFolderIcon = "tree/images/xp/openfolder.png";
                                            webFXTreeConfig.fileIcon = UrlParm.parm('view')=='node_select'?"tree/images/xp/file.png": "tree/images/xp/folder.png";
                                            webFXTreeConfig.lMinusIcon = "tree/images/xp/Lminus.png";
                                            webFXTreeConfig.lPlusIcon = "tree/images/xp/Lplus.png";
                                            webFXTreeConfig.tMinusIcon = "tree/images/xp/Tminus.png";
                                            webFXTreeConfig.tPlusIcon = "tree/images/xp/Tplus.png";
                                            webFXTreeConfig.iIcon = "tree/images/xp/I.png";
                                            webFXTreeConfig.lIcon = "tree/images/xp/L.png";
                                            webFXTreeConfig.tIcon = "tree/images/xp/T.png";
                                            webFXTreeConfig.blankIcon = "tree/images/blank.png";
                                            var rti;
                                            <%=m_strJs %>
                                            document.write(tree);
                        </script>
                    </div>
                    <!---->
                </td>
            </tr>
        </tbody>
    </table>
    <!--评论模块-->
    <!--广告模块-->
    <table align="center" width="90%" border="0" id="tbAdvertisement" runat="server"
        visible="false">
        <tbody>
            <tr>
                <td>
                    <table border="0" class="lefttree" cellpadding="2" cellspacing="2">
                        <tbody>
                            <tr>
                                <td>
                                    <a href="advertisement/advertisement_setting.aspx" target="mainwin">广告设置</a>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <a href="advertisement/advertisement_update.aspx" target="mainwin">更新广告</a>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <a href="advertisement/advertisement_hits.aspx" target="mainwin">点击统计</a>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <a href="advertisement/advertisement_list.aspx" target="mainwin" onclick="javascript:ShowMenu('advertisement_add');">
                                        广告管理</a>
                                </td>
                            </tr>
                            <tr id="advertisement_add" class="hide" style="display: none">
                                <td>
                                    &nbsp;&nbsp;<a href="advertisement/advertisement_save.aspx" target="mainwin">新增
                                    </a>&nbsp;&nbsp;<a href="advertisement/advertisement_list.aspx?ac=edit_del" target="mainwin">编辑/删除
                                    </a>
                                </td>
                            </tr>
                            <tr class="hide" style="display: none">
                                <td>
                                    <a href="advertisement/advertisement_customers_list.aspx" target="mainwin" ondblclick="javascript:ShowMenu('advertisement_customers_add');">
                                        客户管理</a>
                                </td>
                            </tr>
                            <tr id="advertisement_customers_add" class="hide" style="display: none">
                                <td>
                                    &nbsp;&nbsp;&nbsp;&nbsp;<a href="advertisement/advertisement_customers_save.aspx"
                                        target="mainwin">新增 </a>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
    <!--广告模块-->
    <!--信息点击量统计-->
    <table align="center" width="90%" border="0" id="tbContentClick" runat="server" visible="false">
        <tbody>
            <tr>
                <td>
                    <table border="0" class="lefttree" cellpadding="2" cellspacing="2">
                        <tbody>
                            <tr>
                                <td>
                                    <a href="contentclick/ContentClick_list.aspx" target="mainwin">全部信息统计</a>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <!--结点树-->
                    <div id="div1">
                        <script type="text/javascript" src="tree/xtree.js"></script>
                        <script type="text/javascript" src="tree/xmlextras.js"></script>
                        <script type="text/javascript" src="tree/xloadtree.js"></script>
                        <script src="tree/xmenu.js" type="text/javascript"></script>
                        <link href="tree/xmenu.css" rel="stylesheet" type="text/css" />
                        <link type="text/css" rel="stylesheet" href="tree/xtree.css" />
                        <script language="javascript">
                                            function rightMenu(NodeID, ext, event) {
                                            }
                                            /// XP Look
                                            webFXTreeConfig.rootIcon = "tree/images/xp/folder.png";
                                            webFXTreeConfig.openRootIcon = "tree/images/xp/openfolder.png";
                                            webFXTreeConfig.folderIcon = "tree/images/xp/folder.png";
                                            webFXTreeConfig.openFolderIcon = "tree/images/xp/openfolder.png";
                                            webFXTreeConfig.fileIcon = UrlParm.parm('view')=='node_select'?"tree/images/xp/file.png": "tree/images/xp/folder.png";
                                            webFXTreeConfig.lMinusIcon = "tree/images/xp/Lminus.png";
                                            webFXTreeConfig.lPlusIcon = "tree/images/xp/Lplus.png";
                                            webFXTreeConfig.tMinusIcon = "tree/images/xp/Tminus.png";
                                            webFXTreeConfig.tPlusIcon = "tree/images/xp/Tplus.png";
                                            webFXTreeConfig.iIcon = "tree/images/xp/I.png";
                                            webFXTreeConfig.lIcon = "tree/images/xp/L.png";
                                            webFXTreeConfig.tIcon = "tree/images/xp/T.png";
                                            webFXTreeConfig.blankIcon = "tree/images/blank.png";
                                            var rti;
                                            <%=m_strJs %>
                                            document.write(tree);
                        </script>
                    </div>
                    <!---->
                </td>
            </tr>
        </tbody>
    </table>
    <!--信息点击量统计-->
    <!--其他模块 根据menu所对应的配置文件动态读取 begin-->
    <table align="center" width="90%" border="0" id="OthersMenu" runat="server" visible="false">
        <tbody>
            <tr>
                <td>
                    <table border="0" class="lefttree" cellpadding="2" cellspacing="2">
                        <tbody>
                            <!--加载menu begin-->
                            <% string strOthersMenuTR = "<tr><td><a href=\"{1}\" target=\"mainwin\">{2}</a></td></tr>";
                               StringBuilder strbOthersMenuTR = new StringBuilder();
                               int intIndex = 0;

                               if (string.IsNullOrEmpty(base.m_strView) == false)
                               {
                                   System.Data.DataTable oTable = TRPOP.CMS.Model.SYSConfig.GetDataSource(base.m_strView, "//items");
                                   if (oTable != null)
                                   {
                                       foreach (System.Data.DataRow TempRow in TRPOP.CMS.Model.SYSConfig.GetDataSource(base.m_strView, "//items").Rows)
                                       {
                                           intIndex++;
                                           if (intIndex == 1)
                                               continue;
                                           strbOthersMenuTR.Append(string.Format(strOthersMenuTR, new object[] { TempRow["icon"], TempRow["URL"], TempRow["Name"] }));
                                       }
                                   }
                               } %>
                            <%=strbOthersMenuTR.ToString()%>
                            <%if (intIndex <= 0)
                              { %>
                            <script type="text/javascript">
                                parent.hideleft();
                            </script>
                            <%} %>
                            <!--加载menu end-->
                        </tbody>
                    </table>
                </td>
            </tr>
        </tbody>
    </table>
    <!--其他模块 根据menu所对应的配置文件动态读取 end-->
</body>
</html>
